// 规则
const ruleTrigger = {
  'el-input': 'blur',
  'el-input-number': 'blur',
  'el-select': 'change',
  'el-radio-group': 'change',
  'el-checkbox-group': 'change',
  'el-cascader': 'change',
  'el-time-picker': 'change',
  'el-date-picker': 'change',
  'el-rate': 'change',
  'el-color-picker': 'change',
  'JADP-Quill': 'blur',
  "JADP-Text": 'blur',
  "JADP-Amount": 'change',
  "JADP-UploadFz": 'change',
  "JADP-UploadImg": 'change',
  "com-select": 'change', 
  "dep-select": 'change',
  "dep-select-xy": 'change',
  "pos-select": 'change',
  "user-select": 'change',
  "user-select-xy": 'change',
  "dic-select": 'change',
  "JADP-Address": 'change',
}
// 动态options
const dyOptionsList = ['radio', 'checkbox', 'select', 'cascader', 'treeSelect']
// 不添加vModel
const noVModelList = ['divider', 'JADPText', 'groupTitle', 'relationFormAttr', 'relationFlowAttr']
// 不可以添加到子表组件
const noTableAllowList = ['textarea', 'JADPText', 'JADPAmount', 'divider', 'editor', 'uploadImg', 'uploadFz', 'radio', 'checkbox', 'relationForm', 'relationFormAttr', 'relationFlow', 'relationFlowAttr', 'groupTitle', 'createUser', 'createTime', 'modifyUser', 'modifyTime', 'currOrganize', 'currDept', 'currPosition', 'rate', 'slider', 'PsdInput', 'colorPicker']
// 不可以添加到列表展示
const noColumnShowList = ['PsdInput', 'colorPicker', 'rate', 'slider', 'divider', 'uploadImg', 'uploadFz', 'editor', 'JADPText', 'relationFormAttr', 'relationFlowAttr', 'groupTitle']
// 不可以添加到搜索
const noSearchList = [...noColumnShowList, 'switch', 'timeRange', 'dateRange', 'relationForm', 'relationFlow', 'popupSelect']
// 搜索时控件为input
const useInputList = ['comInput', 'textarea', 'JADPText', 'billRule']
// 搜索时控件为日期选择器
const useDateList = ['createTime', 'modifyTime']
// 搜索时控件为下拉选择器
const useSelectList = ['radio', 'checkbox', 'select']
// 在线开发-功能设计/流程设计独有组件
const webPeculiarList = [{
  __config__: {
    jadpKey: 'relationForm',
    label: '关联表单',
    labelWidth: undefined,
    showLabel: true,
    tag: 'relationForm',
    tagIcon: 'icon-ym icon-ym-generator-menu',
    defaultValue: '',
    required: false,
    layout: 'colFormItem',
    span: 24,
    dragDisabled: false,
    regList: [],
    trigger: 'change'
  },
  placeholder: '请选择',
  flowId: '',
  relationField: '',
  columnOptions: [],
  clearable: true,
  filterable: false,
  disabled: false
},
{
  __config__: {
    jadpKey: 'relationFormAttr',
    label: '关联表单属性',
    labelWidth: undefined,
    showLabel: true,
    tag: 'relationFormAttr',
    tagIcon: 'icon-ym icon-ym-generator-nature',
    defaultValue: '',
    required: false,
    layout: 'colFormItem',
    span: 24,
    dragDisabled: false
  },
  showField: '',
  relationField: ''
},
{
  __config__: {
    jadpKey: 'calculate',
    label: '计算公式',
    labelWidth: undefined,
    showLabel: true,
    required: false,
    tag: 'calculate',
    tagIcon: 'icon-ym icon-ym-generator-count',
    defaultValue: null,
    layout: 'colFormItem',
    span: 24,
    dragDisabled: false,
    regList: []
  },
  expression: []
},
{
  __config__: {
    jadpKey: 'popupSelect',
    label: '弹窗选择',
    labelWidth: undefined,
    showLabel: true,
    required: false,
    tag: 'popupSelect',
    tagIcon: 'icon-ym icon-ym-generator-checkbox',
    defaultValue: '',
    layout: 'colFormItem',
    span: 24,
    dragDisabled: false,
    regList: []
  },
  interfaceId: '',
  columnOptions: [],
  propsValue: 'id',
  disabled: false,
  clearable: true,
}
]
// 在线开发-流程设计独有组件
const flowPeculiarList = [{
  __config__: {
    jadpKey: 'relationFlow',
    label: '关联流程表单',
    labelWidth: undefined,
    showLabel: true,
    tag: 'relationFlow',
    tagIcon: 'icon-ym icon-ym-generator-flow',
    defaultValue: '',
    required: false,
    layout: 'colFormItem',
    span: 24,
    dragDisabled: false,
    regList: [],
    trigger: 'change'
  },
  placeholder: '请选择',
  modelId: '',
  relationField: '',
  clearable: true,
  filterable: false,
  disabled: false
},
{
  __config__: {
    jadpKey: 'relationFlowAttr',
    label: '关联流程属性',
    labelWidth: undefined,
    showLabel: true,
    tag: 'relationFlowAttr',
    tagIcon: 'icon-ym icon-ym-generator-nature',
    defaultValue: '',
    required: false,
    layout: 'colFormItem',
    span: 24,
    dragDisabled: false
  },
  showField: '',
  relationField: ''
}
]
export { ruleTrigger, dyOptionsList, noVModelList, noTableAllowList, noColumnShowList, noSearchList, webPeculiarList, flowPeculiarList, useInputList, useDateList, useSelectList }